package com.zl.learning.object.event;

public class TestB {

    public TestB(TestA a) {
        a.addEvent(this::getChanged);
    }

    public void getChanged(TestA a){
        System.out.println("TestB :"+a.getData());
    }
}
